﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial class Cate_Second
    {
        public string parentName;
        public Cate_Second ToPOCO2()
        {
            Cate_Second poco = new Cate_Second()
            {
                id = this.id,
                name = this.name,
                firstId = this.firstId,
                parentName = this.Cate_Fisrt.name,
                isNav = this.isNav
            };
            return poco;
        }
    }
    public partial class Cate_Third
    {
        public string parentName;
        public Cate_Third ToPOCO2()
        {
            Cate_Third poco = new Cate_Third()
            {
                id = this.id,
                name = this.name,
                firstId = this.firstId,
                secondId = this.secondId,
                parentName = this.Cate_Second.name,
                isNav = this.isNav
            };
            return poco;
        }
    }
}
